<?php

namespace App\Providers;


use App\Models\Good;
use App\Observers\GoodObserver;


use App\Models\Combination;

use App\Models\GroupGood;
use App\Models\GroupModel;
use App\Observers\CombinationObserver;

use App\Observers\GroupGoodObserver;
use App\Observers\GroupObserver;

use Illuminate\Support\ServiceProvider;

class AppServiceProvider extends ServiceProvider
{
    /**
     * Register any application services.
     *
     * @return void
     */
    public function register()
    {
        //
    }

    /**
     * Bootstrap any application services.
     *
     * @return void
     */
    public function boot()
    {

        GroupGood::observe(GroupGoodObserver::class);
        Combination::observe(CombinationObserver::class);
        GroupModel::observe(GroupObserver::class);
        Good::observe(GoodObserver::class);
        \Schema::defaultStringLength(191);
    }
}
